<?php
namespace app\common\services;
use \app\models\user\China;
use \app\models\user\MemberAddress;
class CityService
{
	public static function getAddress($express_address_id){
		$info=MemberAddress::find()->where(['id'=>$express_address_id])->one();
		$tmp_province=china::find()->select('name')->where(['id'=>$info->province_id])->one();
        $province=$tmp_province['name'];
        $tmp_city=china::find()->select('name')->where(['id'=>$info->city_id])->one();
        $city=$tmp_city['name'];
        $tmp_area=china::find()->select('name')->where(['id'=>$info->area_id])->one();
        $area=$tmp_area['name'];
        return $province.$city.$area.$info->address;
	}

}